package com.zry.traced.ui.activity

import com.zry.traced.R

import com.zry.traced.databinding.ActivityLocalDataListBinding
import com.zry.traced.presenter.LocalDataListPresenter
import com.zry.traced.ui.base.BaseActivity
import kotlinx.android.synthetic.main.common_title.*

class LocalDataListActivity : BaseActivity() {
    private var localDataListBinding: ActivityLocalDataListBinding? = null
    private var localDataListPresenter: LocalDataListPresenter? = null
    var title = ""
    override fun getLayoutId(): Int {
        return R.layout.activity_local_data_list
    }

    override fun initData() {

        title = intent.getStringExtra("title")
        titleCenterText.text = title
        commonLeftLinearLayout.setOnClickListener { finish() }
        localDataListBinding = viewDataBinding as ActivityLocalDataListBinding
        localDataListPresenter = LocalDataListPresenter(this)
        localDataListPresenter?.initRecycler()
        localDataListPresenter?.getLocalDataList()
    }
}
